Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from static gl generator to struct #249

Merged
merged 1 commit into from
Aug 20, 2014

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Aug 20, 2014

The struct gl generator is cleaner, and using it will probably fix some possible crashes when using multiple GL contexts on Windows.

Directly invoking generate_gl_bindings also allows you to directly specify which GL extensions you may wish to use in the future.

I had to remove some commas because of rust-lang/rust#14240

Note: I could only try the gl-init example (which doesn't draw anything on the screen), but I don't see any reason why the examples would break.

@brendanzab
Copy link
Contributor

Awesome - I was hoping to do this eventually.

brendanzab added a commit that referenced this pull request Aug 20, 2014
Switch from static gl generator to struct
@brendanzab brendanzab merged commit fe0f9bd into gfx-rs:master Aug 20, 2014
@tomaka tomaka deleted the struct-gl branch August 20, 2014 08:05
@kvark
Copy link
Member

kvark commented Aug 20, 2014

Oh, this is amazing! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants